package tool;

import aboutbook.Book;
import aboutbook.BookList;

public class Show implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示方法");

        int currentnum = bookList.getBebooks();
        for (int i = 0; i < currentnum; i++) {
            Book book = bookList.getbooks(i);
            System.out.println(book.toString());
        }

    }
}
